#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:demo03.py
@time:2022/02/17
"""
from functools import singledispatch


@singledispatch
def age(obj):
    ...
    print(f"请传入合法的参数")


@age.register(int)
def _(age):
    print("int")





if __name__ == '__main__':
    pass
    age("212312")
